/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package util;

import javax.swing.JInternalFrame;
import javax.swing.JOptionPane;

/**
 *
 * @author anh
 */
public class Utility {
    public void focusOn(JInternalFrame jif) {
        jif.setVisible(true);
        try {
            jif.setSelected(true);
        } catch (Exception e) {
            JOptionPane.showMessageDialog(null, e);
        }
    }
}
